@echo off

setlocal EnableDelayedExpansion

set "authors=qinkai wangxudong lihaidong zhanghongwei"

for %%a in (%authors%) do (
    set "adds=0"
    for /f "tokens=1,2" %%i in ('git log --author=%%a "--pretty=tformat:" --numstat') do (
        if "%%i" neq "-" set /a adds+=%%i
    )
    echo %%a: !adds! lines added
)

endlocal
